body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

label {
    margin: 0; /* 移除默认的上下边距 */
}

.pth {
    width: 80%;
    margin: 0 auto;
    border-radius: 4px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 12px;
}

.tooltip {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: none; 
    pointer-events: none;
    font-size: 12px;
    z-index: 10;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}
.legend2 {
    position: fixed;
    top: 90px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1000;
}
.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.color-box {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

#topology {
    width: 80%;
    height: 90vh;
    margin: 0 auto;
    border: 1px solid #000;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
}

#infoPanel h3 {
    margin-top: 0;
}

#infoPanel p {
    margin: 5px 0;
}

